
package com.be.beadmin.material.repository;

import com.be.beadmin.material.entity.PickingTask;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author zmy
* @date 2023-05-14
**/
public interface PickingTaskRepository extends JpaRepository<PickingTask, String>, JpaSpecificationExecutor<PickingTask> {

    PickingTask findPickingTaskByIdAndDelete(String id, Integer delete);

    List<PickingTask> findPickingTaskByWoAndDelete(String wo, Integer delete);
    PickingTask findPickingTaskById(String id);

    PickingTask findPickingTaskByPickingTaskCodeAndDelete(String pickingTaskCode, Integer delete);

    PickingTask findPickingTaskByProjectNameAndProductCodeAndDelete(String projectName,String productCode,int delete);

    List<PickingTask> findPickingTaskByBatchPlanIdAndPickingStateAndDelete(String batchPlanId, String pickingState, Integer delete);
}